package models

type Datastore interface {
	GetAllTag() (SnippTags, error)
	GetCodeListForTag(tageid int) (SnippCodes, error)
	GetCodeListAll()(SnippCodes,error)
	GetCodeForId(code_id int)(*SnippCode,error)

	InsertTag(tag *SnippTag) int64
	InsertCode(code *SnippCode) int64
	InsertRelation(codeid int64, tageids string)
}
